//
//  KV2GetCameraAngleNormalModel.m
//  XiaoMiao
//
//  Created by Jim huang on 2018/4/26.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import "KV2CameraAngleNormalModel.h"

@interface KV2GetCameraAngleCateModel()<NSCoding>

@end

@implementation KV2GetCameraAngleCateModel
- (void)encodeWithCoder:(NSCoder *)encoder {
    [encoder encodeObject:self.cateViews forKey:@"cateViews"];
    [encoder encodeObject:self.id forKey:@"id"];
    [encoder encodeObject:self.imageUrl forKey:@"imageUrl"];
    [encoder encodeObject:self.name forKey:@"name"];
    [encoder encodeObject:self.parentId forKey:@"parentId"];
    [encoder encodeObject:self.tag forKey:@"tag"];
    [encoder encodeBool:self.isSelected forKey:@"isSelected"];
}
- (nullable instancetype)initWithCoder:(NSCoder *)decoder {
    self = [super init];
    if (self!=nil) {
        self.cateViews =[decoder decodeObjectForKey:@"cateViews"];
        self.id =[decoder decodeObjectForKey:@"id"];
        self.imageUrl =[decoder decodeObjectForKey:@"imageUrl"];
        self.name =[decoder decodeObjectForKey:@"name"];
        self.parentId =[decoder decodeObjectForKey:@"parentId"];
        self.tag =[decoder decodeObjectForKey:@"tag"];
        self.isSelected =[decoder decodeObjectForKey:@"isSelected"];

    }
    return self;
}
@end

@interface KV2CameraAngleModel ()<NSCoding>

@end

@implementation KV2CameraAngleModel


- (void)encodeWithCoder:(NSCoder *)encoder {
    
    [encoder encodeObject:self.cateId forKey:@"cateId"];
    [encoder encodeObject:self.id forKey:@"id"];
    [encoder encodeObject:self.imageUrl forKey:@"imageUrl"];
    [encoder encodeObject:self.name forKey:@"name"];
    [encoder encodeObject:self.sort forKey:@"sort"];
    [encoder encodeObject:self.subCateId forKey:@"subCateId"];
    [encoder encodeObject:self.subSubCateId forKey:@"subSubCateId"];
    [encoder encodeObject:self.normalImage forKey:@"normalImage"];
    [encoder encodeObject:self.syncImage forKey:@"syncImage"];
    [encoder encodeObject:self.normalImageUrl forKey:@"normalImageUrl"];
    [encoder encodeObject:self.syncImageUrl forKey:@"syncImageUrl"];
    [encoder encodeObject:self.isOneself forKey:@"isOneself"];

}
- (nullable instancetype)initWithCoder:(NSCoder *)decoder {
    self = [super init];
    if (self!=nil) {
        
        self.self.cateId =[decoder decodeObjectForKey:@"self.cateId"];
        self.id =[decoder decodeObjectForKey:@"id"];
        self.imageUrl =[decoder decodeObjectForKey:@"imageUrl"];
        self.name =[decoder decodeObjectForKey:@"name"];
        self.sort =[decoder decodeObjectForKey:@"sort"];
        self.subCateId =[decoder decodeObjectForKey:@"subCateId"];
        self.subSubCateId =[decoder decodeObjectForKey:@"subSubCateId"];
        self.normalImage =[decoder decodeObjectForKey:@"normalImage"];
        self.syncImage =[decoder decodeObjectForKey:@"syncImage"];
        self.normalImageUrl =[decoder decodeObjectForKey:@"normalImageUrl"];
        self.syncImageUrl =[decoder decodeObjectForKey:@"syncImageUrl"];
        self.isOneself =[decoder decodeObjectForKey:@"isOneself"];

        
    }
    return self;
}

@end

@implementation KV2CameraAngleNormalModel

@end
